$(function() {
	$(".order-info tr").each(function() {
		$(this).children("td:eq(1)").addClass("order-content");
	});
});
function obtainGoodsInfo(goodsIds, quantitys, discounts) {
	quantitys = quantitys.split(", ");
	discounts = discounts.split(", ");
	$.post(base + "admin/goods/findByIds.action", {"goodsIds": goodsIds}, function(data) {
		data = eval("(" + data + ")");
		var url;
		$(".order-goods-info tr:eq(0)").nextAll().each(function() {
			$(this).remove();
		});
		for (var i in data) {
			i = parseInt(i);
			url = base + data[i].pictureUrl
			var item = "<tr>" + 
							"<td>" + (i + 1) + "</td>" + 
							"<td>" + data[i].goodsNo + "</td>" + 
							"<td>" + data[i].goodsName + "</td>" + 
							"<td><a href='javascript:;' ref='" + url + "' defaultTip='false' class='preview'>" + 
							"<img src='" + url + "' alt='" + data[i].goodsName + "' class='imgBubble'/></a></td>" + 
							"<td>" + data[i].specification + "</td>" + 
							"<td>" + data[i].recentPrice + "</td>" + 
							"<td>" + discounts[i] + "</td>" + 
							"<td>" + quantitys[i] + "</td>" + 
							"<td>" + (data[i].recentPrice * discounts[i] * quantitys[i]) + "</td>" + 
						"</tr>";
			$(".order-goods-info").append(item);
		}
	});
}